import request from '@/axios'

function formatRequestUri(name) {
  return 'hr/EmpRole/' + name
}
export function set(empId: string, roleId: string[]) {
  return request.post({
    url: formatRequestUri('Set'),
    data: {
      EmpId: empId,
      RoleId: roleId
    }
  })
}
export function get(empId: string) {
  return request.get({
    url: formatRequestUri('Get'),
    params: {
      empId
    }
  })
}
